/* 
 * Gneat (http://gneat.org)
 *
 * (C) Copyright 2011 and beyond - Claudio Stella, all rights reserved.
 *
 * This file is part of Gneat.
 *
 * Gneat is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License (LGPL)
 * as published by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Gneat is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * and the GNU General Public License, for completeness, along with Gneat.  
 * If not, see <http://www.gnu.org/licenses/>.
 */
package org.neatshell.gneat.client.presenter.core.traversing;

import org.neatshell.gneat.client.presenter.core.IPresenter;
import org.neatshell.gneat.client.presenter.core.IPresenterList;

public interface TreeTraversalList {
	IPresenterList children(Integer nodeType);
	IPresenterList children();

//	/**
//	 * Get the first element that matches the selector, beginning at the current presenter and progressing up through its parents()
//	 * @return
//	 */
//	IPresenter closest();
	
	IPresenterList find(Integer nodeType);
	IPresenterList find();
		
	IPresenterList next(Integer nodeType);
	IPresenterList next();

	IPresenterList nextAll(Integer nodeType);
	IPresenterList nextAll();

	IPresenterList nextUntil(IPresenter until, Integer nodeType);
	IPresenterList nextUntil(IPresenter until);

	IPresenterList parent();
	IPresenterList parents();
	
	IPresenterList parentsUntil(IPresenter until);

	IPresenterList prev(Integer nodeType);
	IPresenterList prev();

	IPresenterList prevAll(Integer nodeType);
	IPresenterList prevAll();

	IPresenterList prevUntil(IPresenter until, Integer nodeType);
	IPresenterList prevUntil(IPresenter until);

	IPresenterList siblings(Integer nodeType);
	IPresenterList siblings();
}